package com.zenchn.service.impl;

import com.zenchn.dao.TSysLoginAccessRecordMapper;
import com.zenchn.dynamic.TSysLoginAccessRecordDynamicMapper;
import com.zenchn.generic.GenericDao;
import com.zenchn.generic.GenericServiceImpl;
import com.zenchn.model.TSysLoginAccessRecord;
import com.zenchn.model.TSysLoginAccessRecordExample;
import com.zenchn.service.LoginAccessRecordService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import static org.mybatis.dynamic.sql.SqlBuilder.*;
import static com.zenchn.dynamic.TSysLoginAccessRecordDynamicSqlSupport.*;
/**
 * 登录访问记录 实现类
 *
 * @author dingxinfa
 * @date 2020-04-16
 **/
@Service
@Transactional(rollbackFor = Exception.class)
public class LoginAccessRecordServiceImpl extends GenericServiceImpl<TSysLoginAccessRecord,String, TSysLoginAccessRecordExample> implements LoginAccessRecordService {

    @Resource
    private TSysLoginAccessRecordMapper loginAccessRecordMapper;

    @Resource
    private TSysLoginAccessRecordDynamicMapper loginAccessRecordDynamicMapper;
    @Override
    public GenericDao<TSysLoginAccessRecord, String, TSysLoginAccessRecordExample> getDao() {
        return loginAccessRecordMapper;
    }
}
